import React, { useEffect, useState } from 'react'
import usePosition from '../hook/usePosition'

export default function Mouse() {
    let {x, y} = usePosition();
    x -= 70;
    y -= 70;
    return (
        <div style={{ width: 60, height: 60, position: 'absolute', left: x, top: y, background: '#333' }}>Mouse</div>
    )
}
